package parser;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

public class Leitor {
	
	private String conteudo;
	private String endereco;
	
	public Leitor(String path)
	{
		endereco = path;		
	}
	
	public InputStreamReader getConteudo() throws FileNotFoundException, IOException
	{
		FileInputStream fis = new FileInputStream(endereco);
		//InputStreamReader in = new InputStreamReader(fis, "UTF8");
		InputStreamReader in = new InputStreamReader(fis);
		//SimpleCharStream scs = new SimpleCharStream(in);
		//ParserTokenManager tm = new ParserTokenManager(scs);
		
		//return tm;
		/*char C;
		while (in.ready()) {			
			C = (char)in.read();
			System.out.print(C);								
		}
		*/
		return in;
	}
}
